home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
comm
/
mail
/
YAM13_4Upd.lha
/
YAM_Update
/
Install
< prev
next >
Wrap
Text File
|
1996-12-12
|
1KB
|
40 lines
; YAM 1.3.4 update script - © 12-Dec-96, Marcel Beck
(message "\n\n\nWelcome to the YAM 1.3.4 update.\n\n"
"Important: This installer script requires\nan installed version of YAM 1.3.3a.")
(complete 0)
(if (<> 0 (exists "YAM:" (noreq)))
(set yam_file (tackon (getassign "YAM") "YAM"))
(set yam_file @default-dest)
)
(set yam_file
(askfile (default yam_file) (prompt "Please select the YAM 1.3.3a executable") (help @askfile-help))
)
(set @default-dest (pathonly yam_file))
(complete 25)
(set yam_patch -1)
(set yam_size (getsize YAM_file))
(if (= yam_size 152716) (set yam_patch 0))
(if (= yam_size 152180) (set yam_patch 1))
(if (= yam_size 152164) (set yam_patch 2))
(if (= -1 yam_patch)
(
(abort "\nSorry, but you can only update from YAM 1.3.3a.\n"
"It's available from the Aminet: comm/mail/YAM13_3a.lha")
))
(set version_desc (select yam_patch "" "[020]" "[040]"))
(message "\nThe installer script found\nversion 1.3.3a " version_desc " of YAM.\n\n"
"If you continue,\n" yam_file "\nwill be updated.\n")
(complete 50)
(set patch_file (select yam_patch "YAM.pch" "YAM.020.pch" "YAM.040.pch"))
(working "Applying " patch_file "...")
(run (cat "spatch -o" yam_file " -p" patch_file " " yam_file))
(complete 75)
(copyfiles (source "Changes") (dest @default-dest))
(complete 100)